﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lola.Datos.Persistencia
{
    public static class pChoferServicio
    {
        public static List<int> buscarLegajosChoferes(string cod)
        {
            using (SeminarioIEntities contextSeminarioI = new SeminarioIEntities())
            {
                var query = from p in contextSeminarioI.ChoferServicios
                            where p.cod == cod
                            select p.legajo;
                List<int> legajos = query.ToList();
                return legajos;
            }
        }

    }
}
